﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using netDxf.Tables;

namespace CPlatePrintSys.Annotation.Models
{
    /// <summary>
    /// dxf图层列表
    /// </summary>
    public class DocumentLayerList
    {
        public string DocumentName { get; set; } // 文档名称

        public List<Layer> Layers { get; set; } // 图层名称列表

        /// <summary>
        /// 控件ID，用于区分不同的控件实例
        /// </summary>
        public string ControlId { get; set; } = string.Empty;

        public DocumentLayerList() { }
        public DocumentLayerList(string docName, List<Layer> layers) 
        { 
            this.DocumentName = docName;
            this.Layers = new List<Layer>(layers);
        }
        
        public DocumentLayerList(string docName, List<Layer> layers, string controlId) 
        { 
            this.DocumentName = docName;
            this.Layers = new List<Layer>(layers);
            this.ControlId = controlId;
        }
    }
}
